<?php 
// application/layouts/scripts/layout.phtml
//echo $this->doctype()
header ("Content-Type: text/html; charset=utf-8");
 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title>to-ezhik.ru</title>
  <?php echo $this->headLink()->appendStylesheet('/css/style.css') ?>
</head> 

<body>
<div class='ez_head'>to-ezhik.ru</div>

<table class='ez_ctable' align="center" border=0 >
<tr>
<td width="1%">
<div class='ez_menu'>
<? if (Zend_Auth::getInstance()->hasIdentity()){
	$user=Zend_Auth::getInstance()->getIdentity();
	?>
	<div class='ez_menusection'>
	<div class='ez_menuitem'><a href='/login/logout'>выход</a> (<?=$user->name?>)</div>
	</div>
	<?	
}
?>
<div class="ez_menusection">
<div class="ez_menuitem">
<a href='<?=$this->url(array('controller'=>'index','action'=>'campaignlist'),'default',true); ?>'>
Доступные кампании
</a>

</div>
<div class="ez_menuitem">
<a href='<?=$this->url(array('controller'=>'index','action'=>'mycampaignlist'),'default',true); ?>'>
Мои кампании
</a>
</div>

</div>

</div>
</td>
<td>
<div class='ez_content'>
<?php echo $this->layout()->content ?>
</div>
</td>
<td>
<div class='ez_right'></div>
</td>
</tr>
</table>

</body>
</html>
